package org.sgx.gwteditors.client.impl1.edbean;

import java.lang.annotation.*;


/**
 * object writers can annotate POJOS getters or setters of properties with this annotation for
 * specifying the class name of the desired editor to edit the property, for example
 * 
 * <pre>
@UseEditor(
	description="description1", 
	editorName="org.sgx.gwteditors.client.impl1.simple.IntegerEditorEntry2", 
	label="Coeficiente intelectual de la luna") 
public Integer getMeasureOne() {
	return measureOne;
}
</pre>
 * @author sg
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface UseEditor {
	/**
	 * optional, specify a custom editor, must correspond to an editor id in the framework.
	 * @return
	 */
	String editorName() default "";
	String description() default "";
	/**
	 * for putting an internationalized bean property name.
	 * @return
	 */
	String label() default "";
	
	/**
	 * some editors accept config params in json object format {param1: "val1", param2: 123}
	 * 
	 * There is a base configuration that should be accepted by all editors. Base properties: 
	 * 
	 * cssClassName - a html class name that will be added to the HTML element content box corresponding to the editor. 
	 * @return
	 */
	String config() default ""; 
}
